<?php
require_once '../requires.php';

$cfg = array(
	'type' => 'bzip2',
);

$compressStr = Package::compress('raw data', $cfg);
var_dump($compressStr);
$compressStr = Package::compress('another raw data, a kind of this is a b c d ef ghigj abs package bzip2 zip rar requires php documentor php unit db cat cache api exception do while for for each until config page feed ftp mail oauth', $cfg);
var_dump($compressStr);

$uncompressStr = Package::uncompress($compressStr, $cfg);
var_dump($uncompressStr);

var_dump(Package::fcompress('./uncompress/bzip2_uncompress.txt', './compress/'));

var_dump(Package::funcompress('./compress/bzip2_compress.txt.bz2', './uncompress/'));
?>